package com.app.community.service;

import com.app.community.mapper.AvatarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @Date 2020/11/1 19:45
 **/
@Service
public class AvatarService {
    @Autowired
    AvatarMapper avatarMapper;

    @Cacheable(cacheNames = {"avatar"})
    public String selectUserAvatar(String userId){
        return  avatarMapper.selectUserAvatar(userId);
    }
}
